package source.calcCmd;

public class State {
	public Vec pos;
	public double fi;
	public double vR;
	public double vL;
	
	public State(Vec vec, double orient, double vR, double vL){
		pos = new Vec(vec);
		this.fi = orient;
		this.vR = vR;
		this.vL = vL;
	}

	public State(State s) {
		pos = new Vec(s.pos);
		this.fi = s.fi;
		this.vR = s.vR;
		this.vL = s.vL;
	}
	
	public State() {
		this.pos = new Vec(0,0);
		this.fi = 0;
		this.vR = 0;
		this.vL = 0;
	}

	public void setState(State s){
		this.pos = new Vec(s.pos);
		this.fi = s.fi;
		this.vR = s.vR;
		this.vL = s.vL;
	}
	
	public void setState(Vec pos, double fi, double vR, double vL){
		this.pos.x = pos.x;
		this.pos.y = pos.y;
		this.fi = fi;
		this.vR = vR;
		this.vL = vL;
	}
}
